package com.example.search.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @Date: 2019/3/6 15:46
 * @Description:
 */
@ApiModel(description = "Shop实体")
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Accessors(chain = true)
@Document(indexName = "big_data_center_shop", type = "shop", shards = 1, replicas = 0)
public class Shop implements Serializable {

    @ApiModelProperty(value = "主键ID", example = "ce2e7aaf4ecd45e59967668d0644ddc9")
    @Id
    private String id;
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", example = "名称")
    private String shopName;
    /**
     * 店铺编码
     */
    @ApiModelProperty(value = "店铺编码", example = "123456")
    private String shopCode;
    /**
     * 地址
     */
    @ApiModelProperty(value = "地址", example = "地址")
    private String address;
    /**
     * 营业状态
     * 0：未开业 1：营业中 2：歇业 3：停止营业
     */
    @ApiModelProperty(value = "营业状态", example = "0")
    private int isOpen;
    /**
     * 店铺公告
     */
    @ApiModelProperty(value = "描述", example = "描述")
    private String notice;
    @ApiModelProperty(value = "创建时间", example = "2020-03-29 15:52:11")
    private String createTime;


}
